<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Results</title>
</head>
<body>
<h1>{{ question.question_text }}</h1>

<ul>
<table border="1" cellpadding="10" cellspacing="0">
{#        <caption>投票结果</caption>#}
        <tr>
            <th>选项</th>
            <th>票数</th>
        </tr>
    {% for choice in question.choice_set.all %}
{#        <li>{{ choice.choice_text }} -- {{ choice.votes }} vote{{ choice.votes|pluralize }}</li>#}
            <tr>
                <td>{{ choice.choice_text }}</td>
                <td>{{ choice.votes }}</td>
            </tr>
    {% endfor %}
</table>

</ul>

<a href="{% url 'polls:detail' question.id %}">Vote again?</a>
</body>
</html>